package com.fun.feifun.modules.business.model.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BusinessBlacklistPage implements Serializable  {

    @ApiModelProperty(value = "类型 false自动 true手动")
    private String lockStatus;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "页码")
    private int page=1;

    @ApiModelProperty(value = "分页数量")
    private int size=10;

    @ApiModelProperty(value = "排序字段")
    private String sort="id";

    @ApiModelProperty(value = "排序类型")
    private boolean isASC=true;

    private int offSet=(page-1)*size;

    public int getSize() {
        if(size==0)
            return 10;
        return size;
    }
    public int getPage() {
        if(page==0)
            return 1;
        return page;
    }

}
